<template>
    <div>
        <div class="form">
            <el-form ref="form" :model="form" label-width="80px">
                <el-form-item label="员工姓名">
                    <el-input type="empId" v-model="form.empId" style="width: 150px;"></el-input>
                </el-form-item>
                <el-form-item label="请假分类">
                    <el-input type="empName" v-model="form.empName"></el-input>
                </el-form-item>
                <el-form-item label="请假描述">
                    <el-input type="textarea" v-model="form.sex"></el-input>
                </el-form-item>
                <el-form-item label="开始时间">
                    <el-col :span="11">
                        <el-date-picker type="date" placeholder="选择日期" v-model="form.date1" style="width: 100%;"></el-date-picker>
                    </el-col>
                    <el-col class="line" :span="1">-</el-col>
                    <el-col :span="11">
                        <el-time-picker placeholder="选择时间" v-model="form.date2" style="width: 100%;"></el-time-picker>
                    </el-col>
                </el-form-item>
                <el-form-item label="开始时间">
                    <el-col :span="11">
                        <el-date-picker type="date" placeholder="选择日期" v-model="form.date1" style="width: 100%;"></el-date-picker>
                    </el-col>
                    <el-col class="line" :span="1">-</el-col>
                    <el-col :span="11">
                        <el-time-picker placeholder="选择时间" v-model="form.date2" style="width: 100%;"></el-time-picker>
                    </el-col>
                </el-form-item>
                <el-form-item>
                    <el-button type="primary" class="upAllSubmit">提交</el-button>
                    <el-button class="resetUpSubmit" @click="resetUpSubmit">取消</el-button>
                </el-form-item>
            </el-form>
        </div>
        
    </div>
</template>
<script>

export default{
    name:'leaveForm',
    data() {
      return {
        form: {
            empId: '',
            empCode: '',
            empName: '',
            sex: '',
            age: '',
            phone:''
        }
      }
    },
    methods: {
      onSubmit() {
        
      }
    }
}
</script>
<style scoped>
.form{
    margin: 0 auto;
    border: 1px solid black;
    width: 700px;
    height: 400px;
    padding: 20px;
}
</style>